projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b00b2b
)
(copy_text): To convert a non-ASCII char to unibyte,
author
Kenichi Handa
<handa@m17n.org>
Tue, 30 Dec 2008 01:48:18 +0000
(
01:48
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Tue, 30 Dec 2008 01:48:18 +0000
(
01:48
+0000)
just get the low 8-bit of the code.
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index a41f03b1ba474379ac316856f6be2a704b35aa20..3483ad668cf7f6190489a62150ce4b341de2ff73 100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-655,8
+655,8
@@
copy_text (from_addr, to_addr, nbytes,
{
int thislen, c;
c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
- if (!ASCII_CHAR_P (c))
- c
= multibyte_char_to_unibyte (c, tbl)
;
+ if (!
ASCII_CHAR_P (c))
+ c
&= 0xFF
;
*to_addr++ = c;
from_addr += thislen;
bytes_left -= thislen;